package com.sumover.POJO;

import java.io.Serializable;

public class ArticleComment extends Comment implements Serializable {
    private Integer cid;

    private Integer articleid;

    private static final long serialVersionUID = 1L;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getArticleid() {
        return articleid;
    }

    public void setArticleid(Integer articleid) {
        this.articleid = articleid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ArticleComment other = (ArticleComment) that;
        return (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
                && (this.getArticleid() == null ? other.getArticleid() == null : this.getArticleid().equals(other.getArticleid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getArticleid() == null) ? 0 : getArticleid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "ArticleComment{" +
                "cid=" + cid +
                ", articleid=" + articleid +
                "} " + super.toString();
    }
}